/*
actor_sprite_set();
*/
if (global.control == 1)
{
if (dead == false)
{
	if (alarm[2] != -1 || alarm[3] != -1)
        {
		sprite_index = spr_hurt;
                image_speed = (0.2 * (30/room_speed));
	}
	else
        {
                image_speed=((hsp/2)/5) * (30/room_speed);
                if (climbing)
                {
                sprite_index = spr_climb;
                }
                else
                {
                if (alarm[0] != -1 || crouching){
			sprite_index=spr_crouch;
		}
		else{
			if (actor_floorbelow(1) == false)
                        {
				sprite_index=spr_jump;
			}
			else{
				if (hsp != 0)
                                {
					sprite_index=spr_walk;
				}
				else
                                {
					sprite_index=spr_stand;
				}
			}
		}
                }
	}
}
else{
	sprite_index = spr_dead;
}
if (sprite_index == -1)
{
	sprite_index = object_get_sprite(object_index);
}
image_xscale = dir;
}
else
{
image_speed = 0;
}
